<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        li{
            list-style: none;
        }
        span{
            margin: 0 20px;
        }
    </style>
</head>
<body>
    <h2>个人中心</h2>
    <p>欢迎：<%= username %></p>
    <a href="/">回到首页</a>
    <h3>备忘录</h3> 
    <ul>
        <% for(let i=0; i < data.length; i++){ %>
            <li>
                <b><%= data[i].title %></b>
                <span><%= data[i].content %></span>
                <a href="/updataNote/<%=data[i]._id%>">修改</a>
                <a href="/delNote/<%=data[i]._id%>">删除</a>
            </li>
        <% } %>
    </ul>
    <a href="/note">新建</a>
</body>
</html>